Handle app after recent tab is closed